<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png" />
  </div>
</template>

<script>
export default {
  name: "Home",
  created() {
    this.getData();
    this.postData();
  },
  methods: {
    getData() {
      this.$axios.get("/api/get/user").then((res) => {
        console.log(res.data);
      });
    },
    postData() {
      this.$axios.post("/api/post/user").then((res) => console.log(res.data));
    },
  },
};
</script>
